# coding: utf8

"""worktasks URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import include, url
from django.contrib import admin

urlpatterns = [
    url(r'^$', 'common.views.index'),
    url(r'^common/get_captcha$', 'common.views.get_captcha', name='common_get_captcha'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^it/task/add/$', 'it.views.task.add', name='task_add'),
    url(r'^it/task/list/$', 'it.views.task.list', name='task_list'),
    url(r'^it/task/add_do/$', 'it.views.task.add_do', name='task_add_do'),
    url(r'^it/task/query_problems/$', 'it.views.task.query_problems', name='task_query_problems'),
    url(r'^it/task/query_addresses/$', 'it.views.task.query_addresses', name='task_query_addresses'),
    url(r'^it/task/query_phone_numbers/$', 'it.views.task.query_phone_numbers', name='task_query_phone_numbers'),
    url(r'^it/task/query_names/$', 'it.views.task.query_names', name='task_query_names'),
    url(r'^it/task/cancel/$', 'it.views.task.cancel', name='task_cancel'),
    url(r'^it/task/accept/$', 'it.views.task.accept', name='task_accept'),
    url(r'^it/task/resolved/$', 'it.views.task.resolved', name='task_resolved'),
    url(r'^it/task/view/(?P<task_id>\d+)$', 'it.views.task.view', name='task_view'),
    url(r'^it/task/login/$', 'it.views.task.login', name='task_login'),
    url(r'^it/task/logout/$', 'it.views.task.logout', name='task_logout'),
    url(r'^it/task/scheduling/$', 'it.views.task.scheduling', name='task_scheduling'),
    url(r'^it/task/report/(\w+)/$', 'it.views.task.report', name='task_report'),
]
